package com.betterman.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Table;

/**
 * <p>
 * 
 * </p>
 *
 * @author fox
 * @since 2020-08-05
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@Table(name = "post")
@ApiModel(value="Post对象", description="")
public class Post extends Base {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "标题")
    private String title;

    @ApiModelProperty(value = "内容")
    private String content;

    @ApiModelProperty(value = "编辑模式：html可视化，markdown ..")
    private String editMode;

    private Long categoryId;

    @ApiModelProperty(value = "用户ID")
    private Long userId;

    @ApiModelProperty(value = "支持人数")
    private Integer voteUp;

    @ApiModelProperty(value = "反对人数")
    private Integer voteDown;

    @ApiModelProperty(value = "访问量")
    private Integer viewCount;

    @ApiModelProperty(value = "评论数量")
    private Integer commentCount;

    @ApiModelProperty(value = "是否为精华")
    private Boolean recommend;

    @ApiModelProperty(value = "置顶等级")
    private Integer level;

    @ApiModelProperty(value = "状态")
    private Integer status;


}
